#include "main.h"

//描述符数组维护
void client_add(struct pollfd*C,int*len,int CC,short evern)
{
	/*
	struct pollfd nexfd={0};
	nexfd.fd=CC;
	nexfd.events=evern;
	C[*len]=nexfd;
	*/
	C[*len].fd=CC;
	C[*len].events=evern;
	(*len)++;
	//return;
}
void client_del(struct pollfd*C,int*len,int n)
{
	int i=n;
	for(;i<*len-1;i++)
		C[i]=C[i+1];
	C[i+1].fd=0;
	(*len)--;
	//return;
}
